
<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <title>投诉</title>
    <script language="javascript">

 function keypress2() //textarea输入长度处理
        {
            var text1 = document.getElementById("myarea").value;
            var len; //记录剩余字符串的长度
            if (text1.length >= 50) //textarea控件不能用maxlength属性，就通过这样显示输入字符数了
            {
                document.getElementById("myarea").value = text1.substr(0, 50);
                len = 0;
            } else {
                len = 50 - text1.length;
            }
            var show = "你还可以输入" + len + "个字";
            document.getElementById("pinglun").innerText = show;
        }
    </script>
    <style>
        body,ul,p,h1,h2,h3,h4,dl,dd,form,input,textarea,select { padding:0; margin:0; font-family:arial; }
        html{background: #f1f0f5;   }
        li { list-style:none; }
        img { border:none; }
        a { text-decoration:none; }
        a:hover { text-decoration:none; }
        .head{width:100%;height:40px;background: #000;line-height:40px;text-align:center;color:#fff;font-size:18px;}
        .btn{width:90%;margin:0 auto;border-radius: 10px;height:40px;line-height:40px;background: #04be01;text-align:center;margin-top:80px;}
        .btn .submit{width:100%;height:40px;border:none;background: none;color:#fff;font-size:18px;outline:medium;cursor:pointer;
}
        </style>
</head>
<body>
<div class="head">
    <p>投诉</p>
</div>
<form method="post" action="{:U('Tousu/three')}">
<div style="margin-top:10px;">
    <div style="text-align:left;">

        <p style="color:#9e9da2;">投诉描述</p>
        <br>
        <textarea id="myarea" name="text" style="height:100px;width:100%;text-index:10px;overflow-x:hidden;border:none;line-height:24px;font-size:16px;overflow-y:hidden" onKeyUp="keypress2()" onBlur="keypress2()"></textarea>
        <font color="gray" style="float:right;"><label id="pinglun">你还可以输入50个字</label></font>
        <div>
</div>
        <div class="btn">
		    <input type="hidden" value="{$id}" name="oid"/>
            <input type="submit" class="submit" value="提交" >
        </div>
		</form>
</body>
</html>